package com.ruoyi.project.channel.businessCaptialSetting.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.businessCaptialSetting.mapper.BusinessCaptialSettingMapper;
import com.ruoyi.project.channel.businessCaptialSetting.domain.BusinessCaptialSetting;
import com.ruoyi.project.channel.businessCaptialSetting.service.IBusinessCaptialSettingService;
import com.ruoyi.common.utils.text.Convert;

/**
 * business_capital_setting 服务层实现
 * 
 * @author CAIN
 * @date 2019-09-29
 */
@Service
public class BusinessCaptialSettingServiceImpl implements IBusinessCaptialSettingService 
{
	@Autowired
	private BusinessCaptialSettingMapper businessCaptialSettingMapper;

	/**
     * 查询business_capital_setting信息
     * 
     * @param capitalId business_capital_settingID
     * @return business_capital_setting信息
     */
    @Override
	public BusinessCaptialSetting selectBusinessCaptialSettingById(Long capitalId)
	{
	    return businessCaptialSettingMapper.selectBusinessCaptialSettingById(capitalId);
	}

	@Override
	public BusinessCaptialSetting selectBusinessCaptialSettingByBusiness(Long businessId)
	{
		return businessCaptialSettingMapper.selectBusinessCaptialSettingByBusiness(businessId);
	}

	/**
     * 查询business_capital_setting列表
     * 
     * @param businessCaptialSetting business_capital_setting信息
     * @return business_capital_setting集合
     */
	@Override
	public List<BusinessCaptialSetting> selectBusinessCaptialSettingList(BusinessCaptialSetting businessCaptialSetting)
	{
	    return businessCaptialSettingMapper.selectBusinessCaptialSettingList(businessCaptialSetting);
	}
	
    /**
     * 新增business_capital_setting
     * 
     * @param businessCaptialSetting business_capital_setting信息
     * @return 结果
     */
	@Override
	public int insertBusinessCaptialSetting(BusinessCaptialSetting businessCaptialSetting)
	{
	    return businessCaptialSettingMapper.insertBusinessCaptialSetting(businessCaptialSetting);
	}
	
	/**
     * 修改business_capital_setting
     * 
     * @param businessCaptialSetting business_capital_setting信息
     * @return 结果
     */
	@Override
	public int updateBusinessCaptialSetting(BusinessCaptialSetting businessCaptialSetting)
	{
	    return businessCaptialSettingMapper.updateBusinessCaptialSetting(businessCaptialSetting);
	}

	/**
     * 删除business_capital_setting对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteBusinessCaptialSettingByIds(String ids)
	{
		return businessCaptialSettingMapper.deleteBusinessCaptialSettingByIds(Convert.toStrArray(ids));
	}
	
}
